
OUTPUT := vector

SRC := vector.cc

CC = g++ 
CFLAGS = -gdwarf-2 -g3 -Wall -Wshadow \
         -Wreturn-type -Wno-unused-parameter -fno-common\
         -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith
LDFLAGS = -lpthread -lm 

all: $(OUTPUT)

$(OUTPUT): $(SRC)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
	rm -f *.o

r:
	@./$(OUTPUT)

clean:
	rm -f $(OUTPUT) *.o core.*
